<li class="dropdown active">
    <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true"
       aria-expanded="false">{% if request.web.glory %} {{ request.web.glory.name }} {% else %}荣 誉{% endif %}<span
            class="caret"></span></a>
    <ul class="dropdown-menu">
        {% if my %}
            <li><i class="fa fa-list" aria-hidden="true"></i> 我创建的荣誉</li>

            {% for item in my %}
                <li><a href="{% url 'dashboard' glory_id=item.id %}">{{ item.name }}</a></li>
            {% endfor %}
        {% endif %}
        {% if join %}
            <li role="separator" class="divider"></li>
            <li><i class="fa fa-handshake-o" aria-hidden="true"></i> 我获取的荣誉</li>
            {% for item in join %}
                <li><a href="{% url 'dashboard' glory_id=item.glory.id %}">{{ item.glory.name }}</a></li>
            {% endfor %}
        {% endif %}
        <li role="separator" class="divider"></li>
        <li><a href="{% url 'project_list' %}">所有荣誉</a></li>
    </ul>
</li>
